# 请在此输入您的代码
def main():
    n = int(input())
    dp = [False] * 101  # 该位置能否被凑出来

    for _ in range(n):
        t = int(input())
        dp[t] = True
    for i in range(101):
        for j in range(i):
            if dp[j] and dp[i - j]:
                dp[i] = True
                break
    print(100 - sum(dp))
